import request from '@/utils/request'

class SafetyCheckApi {
  query(data) {
    return request({
      url: '/safetycheck/list',
      method: 'get',
      data
    })
  }

  queryByCond(data, pageSize, pageNum) {
    return request({
      url: `/safetycheck/queryByCond?pageSize=${pageSize}&pageNum=${pageNum}`,
      method: 'post',
      data
    })
  }
  add(data) {
    return request({
      url: '/safetycheck/add',
      method: 'post',
      data
    })
  }
  importExcelData(data) {
    return request({
      url: '/safetycheck/importExcelData',
      method: 'post',
      data
    })
  }
  update(data) {
    return request({
      url: '/safetycheck/update',
      method: 'post',
      data
    })
  }
  getSafetycheck(params) {
    return request({
      url: `/safetycheck/detail`,
      method: 'get',
      params
    })
  }
  delete(data) {
    return request({
      url: '/safetycheck/delete',
      method: 'post',
      data
    })
  }
  daoWord(params) {
    return request({
       responseType: 'blob',
      url: '/dao/word',
      method: 'get',
      params,
    })
  }

}

export default new SafetyCheckApi()
